package com.ktjiaoyu.crm.service;

import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ktjiaoyu.crm.mapper.UserMapper;
import com.ktjiaoyu.crm.pojo.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @ClassName : UserServiceImpl
 * @Description :
 * @Author : Lzz
 * @Date: 2023/11/17 09:01:41
 */
@Service("userService")
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Resource
    UserMapper userMapper;

    @Override
    public User findUserByUsrName(String usrName) {
        return userMapper.findUserByUsrName(usrName);
    }

    @Override
    public IPage<User> findAllUserList(Page<User> page, QueryWrapper<User> queryWrapper) {

        return userMapper.getAllUserList(page,queryWrapper);
    }
}
